package com.ly.mpayment.persist.service.user;

import java.util.List;
import java.util.Map;

import com.ly.mpayment.persist.entity.User;
import com.ly.mpayment.persist.hibernate.Page;

/**
 * 用户操作接口
 * 
 *
 */
public interface IUserService {

	/**
	 * 登录查询单个用户信息
	 * @param phonenum
	 * @return
	 */
	public User findOneUser(String phonenum);
	
	/**
	 * 更新用户信息
	 * @param user
	 * @return
	 */
	public boolean updateUser(User user);
	
	/**
	 * 添加用户
	 * @param user
	 * @return
	 */
	public boolean addUser(User user);
	
	/**
	 * 分页查询
	 * @param parameters
	 * @param start
	 * @param pageSize
	 * @return
	 */
	public Page<User> findPageUser(Map<String, Object> parameters, int start,int pageSize);
	
	
	public User findByUserid(String uuid);
	
	/**
	 * 更新渠道商信息
	 * @param user
	 * @return
	 */
	public boolean updateShop(User user);
	
	public User addUserShop(User user);

	public User findUserName(String userName);
	
	public List<User> findShopBroadbandList(Map<String, Object> parameters);
	
}
